<?php
require_once("dao/blogdao.php");
class blogSide extends blogdao {
	
}
$post = $_POST;
if (!empty($post)){
	$blogId = $post['blogId'];
	$blog = new blogSide();
	$targetBlog = $blog->goGetBlog($blogId);
	$targetBlog = $targetBlog[0];
	echo "<div style='float:right;margin-right:0px;cursor:pointer;margin-top:-5px' onclick=\"closeBlogSide(this)\"><img src='style/window_close.png' width='20px' height='20px' alt='close' /></div>";
	echo "<h2><a href='bloglist.php?blogId=$blogId'>".$targetBlog['title']."</a></h2>";
	echo "<div class='blogtime' style='color:black;'>$blogUser&nbsp;&nbsp;".$targetBlog['postTime']."</div>";
	echo "<div class='blogtext'>".$targetBlog['content']."</div>";
}

?>